import request from "@/utils/request";

//创建订单
export const addOrder = data =>
    request({
        method: 'POST',
        url: '/frontend/order/add/',
        data
    })

//获取订单列表
export const getOrderList = data =>
    request({
        method: 'POST',
        url: '/frontend/order/list/',
        data
    })


//修改订单状态
export const updateOrderStatus = data =>
    request({
        method: 'POST',
        url: '/frontend/order/update/status',
        data
    })